package com.xl.cloud.mapper;

import com.xl.cloud.entities.Account;
import org.apache.ibatis.annotations.Param;
import tk.mybatis.mapper.common.Mapper;

/**
 * @Author XiangLiang
 * @Since 2024/10/9 16:00
 * @Description: AccountMapper类
 */
public interface AccountMapper extends Mapper<Account> {

    /**
     * @param userId  用户ID
     * @param money  本次消费金额
     */
    void decrease(@Param("userId") Long userId, @Param("money") Long money);
}
